home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Context Menu Send To 1.xpl < prev    next >
Text File  |  2001-04-06  |  2KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Files&Folders\ANY file"
  5. "NAME"="'Send To' menu"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Enable 'Send To' menu"
  8. "DESCRIPTION 1"="When you right-click any file in Windows, a submenu called 'Send To' will appear, which contains useful shortcuts to programs and folders."
  9. "DESCRIPTION 2"="You can, however, disable the Send To menu, by clearing the box. Putting a tick in the box will restore it."
  10. "COMMENT 1"="This plug-in is dedicated to the great guys at the Lockergnome Newsgroups."
  11. "VERSION"="1.02"
  12. "AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14.  
  15. 'Declaration of some constants
  16. sP="HKEY_CLASSES_ROOT\AllFileSystemObjects\shellex\ContextMenuHandlers"
  17. s1="\Send To\@"
  18. sV="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
  19.  
  20. 'Called when the Plugin is started
  21. SUB Plugin_Initialize
  22.  s=RegReadValue(sP&s1)
  23.  if s=sV then
  24.   Call SetUIElement(1,true)
  25.  end if
  26. END SUB
  27.  
  28. 'Called when the Plugin should validate the Data the user has entered
  29. SUB Plugin_CheckData(ElementIndex)
  30.  ' Included for X-Setup 5.x compatibility only.
  31. END SUB
  32.  
  33. 'Called when the Plugin should apply the changes
  34. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  s=GetUIElement(1)
  36.  if s=true then
  37.   Call RegWriteValue(sP&s1,sV,1)
  38.  else
  39.   t=RegReadValue(sP&s1)
  40.   if t=sV then
  41.    Call RegDeleteValue(sP&s1)
  42.   end if
  43.  end if
  44. END SUB
  45.  
  46. 'Called when the Plugin is about to be removed from memory
  47. SUB Plugin_Terminate
  48. END SUB
  49.